<%-- 
    Document   : Search_News
    Created on : Dec 21, 2014, 5:22:08 PM
    Author     : Tran Thuy Duong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <!-- Table -->
					<div class="table" id="table">
                                                <c:set var="INFO_search" value="${requestScope.INFO_search}"/>
                                                <c:if test="${not empty INFO_search}">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<th width="13"><input type="checkbox" class="checkbox" /></th>
                                                                <th>#</th>
                                                                <th>Mã</th>
								<th>Tiêu đề</th>
								<th>Mô tả</th>
								<th>Ngày đăng</th>
								<th>Hình ảnh</th>
                                                                
								
								<th width="110" class="ac">Content Control</th>
							</tr>
                                                    <c:set var="count" value="0"/>
                                                    <c:forEach var="rows" items="${INFO_search}">
                                                    <c:set var="count" value="${count + 1}"/>
							<tr>
                                                            <form method="get" action="C_Customer">
								<td><input type="checkbox" class="checkbox" /></td>
                                                                <td>${count}</td>
                                                                 <td>${rows.matt}</td>
                                                                 <td>${rows.tieudett}</td>
                                                                 <td>${rows.mota}</td>
                                                                 <td>${rows.ngaydang}</td>
                                                                 <td>${rows.hinhanh}</td>
                                                               
                                                                <c:url var="delete" value="C_News">
                                                                    <c:param name="btAction" value="Delete"/>
                                                                    <c:param name="matt" value="${rows.matt}"/>
                                                                    <c:param name="txtSearch" value="${param.txtSearch}"/>
                                                                </c:url>
                                                                
                                                                
                                                                <td><a href="${delete}" class="ico del">Delete</a>  <input class="ico edit" type="submit" value="Update" name="btAction"/></td>
                                                            </form>     
                                                        </tr>
                                                            							
                                                    </c:forEach>
						</table>
                                                </c:if>  
						
						
						<!-- Pagging -->
						<div class="pagging">
							<div class="left">Showing 1-8 of 44</div>
							<div class="right">
								<a href="#">Previous</a>
								<a href="#">1</a>
								<a href="#">2</a>
								<a href="#">3</a>
								<a href="#">4</a>
								<a href="#">245</a>
								<span>...</span>
								<a href="#">Next</a>
								<a href="#">View all</a>
							</div>
						</div>
						<!-- End Pagging -->
						
					</div>
					<!-- Table -->     
    </body>
</html>
